const loaderUtils = require("loader-utils");

// 定义 loader
module.exports = function (source) {
  if (source.indexOf('@NgModule') === -1)
    return source;

  

  debugger;
  console.log('======================================');
  console.log('do-nothiing-loader start');
  try {
    console.log(loaderUtils.getOptions(this));
    console.log(source);
    console.log('======================================');
  } catch (error) {
    console.log(error);
  }

  return source;
};